<!DOCTYPE html>
<html>
    <head>
        <meta charset='UTF-8'>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title><?php echo $settings['site_name'] ?> - <?php echo $settings['short_intro'] ?></title>
        <meta name="keywords" content="<?php echo $settings['site_keywords'] ?>" />
        <meta name="description" content="<?php echo $settings['short_intro'] ?>" />
        <?php $this->load->view('common/header-meta'); ?>
    </head>
    <body>
        <?php $this->load->view('common/header'); ?>
        <div class="container">
            <div class="row">
                <div class="col-md-3">

                    <div class="panel">
                        <div class="panel-heading" style="background: #0575bd; ">
                            <div class="panel-title" style="color: #ffffff;font-weight: 600;">信息公开</div></div>
                        <div class="panel-body">
                            <ul>
                                <?php foreach ($cate_list as $v): ?>
                                    <li class="media topic-list"><a href='<?php echo site_url("infoArt/index?cateid={$v['id']}"); ?>'>  <?php echo $v['cate_name']; ?></a></li>
                                <?php endforeach; ?>
                            </ul>
                        </div>
                    </div>
                </div><!-- /.col-md-8 -->
                <div class="col-md-9">
                    <div class="panel">
                        <div class="panel-heading" style="border-bottom: 2px #0575bd solid;">
                            <div class="panel-title" style="color: #0575bd;font-weight: 600;"><?php echo $cur_cate['cate_name'] ?></div>
                        </div>
                        <div class="panel-body info_detail">

                            <?php if ($info_list): ?>
                                <ul class="media-list" id="topic_list">
                                    <?php foreach ($info_list as $v): ?>
                                        <li class="media topic-list">
                                            <div class="media-body">
                                                <h2 class="media-heading topic-list-heading">
                                                    <a href="<?php echo site_url("infoArt/detail?artid={$v['id']}&cateid={$v['cateid']}"); ?>" title="<?php echo $v['title']; ?>"><?php echo $v['title']; ?></a>
                                                    <?php if ($v['ishome'] == '1') echo '<span class="badge badge-info">置顶</span>'; ?>
                                                    <p class="text-muted fr font-16">    
                                                        <span><?php echo (date("Y/m/d", $v['addtime'])) ?></span>
                                                    </p>
                                                </h2>
                                            </div>
                                        </li>
                                    <?php endforeach; ?>
                                </ul>
                            <?php else : ?>
                                暂无信息
                            <?php endif; ?>

                        </div>
                        <div class="panel-footer"><a href="javascript:void(0)" id="getmore" class="startbbs">更多信息</a></div>
                    </div>

                </div><!-- /.col-md-8 -->
            </div><!-- /.row -->
        </div><!-- /.container -->

        <?php $this->load->view('common/footer'); ?>
        <script>
            $(function () {
                var page = 2;
                var cateid = '<?php echo $cateid; ?>';
                $("#getmore").click(function () {
                    var data;
                    $.get('<?php echo site_url(); ?>/infoArt/getmore?page=' + page + '&cate=' + cateid, function (data) {
                        page++;
                        $("#topic_list").append(data);
                    });
                    //$("#infolist").after(tr);
                });
            });

        </script>

    </body>
</html>